package p270jp.pxv.android.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.RelativeLayout;
import androidx.databinding.DataBindingUtil;
import p014ae.View$OnClickListenerC0159t4;
import p045be.View$OnClickListenerC1095o;
import p090d0.C2518n;
import p270jp.pxv.android.R;
import p270jp.pxv.android.legacy.model.PixivWork;
import p307l9.EdgeTreatment;
import p314lg.DetailBottomBarViewBinding;
import p677zi.PixivImageLoader;

/* renamed from: jp.pxv.android.view.DetailBottomBarView */
/* loaded from: classes2.dex */
public class DetailBottomBarView extends RelativeLayout {

    /* renamed from: c */
    public static final /* synthetic */ int f19477c;

    /* renamed from: a */
    public DetailBottomBarViewBinding f19478a = (DetailBottomBarViewBinding) DataBindingUtil.m11370c(LayoutInflater.from(getContext()), R.layout.detail_bottom_bar_view, this, true);

    /* renamed from: b */
    public PixivImageLoader f19479b = (PixivImageLoader) C2518n.m7641d(PixivImageLoader.class);

    public DetailBottomBarView(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
    }

    public void setOnHideIllustCaptionButtonClick(View.OnClickListener onClickListener) {
        this.f19478a.f22304q.setOnClickListener(onClickListener);
    }

    public void setWork(PixivWork pixivWork) {
        EdgeTreatment.m3909i(pixivWork);
        this.f19478a.f22308u.setOnClickListener(new View$OnClickListenerC1095o(this, pixivWork, 8));
        this.f19478a.f22307t.setOnClickListener(new View$OnClickListenerC0159t4(this, pixivWork, 8));
        this.f19479b.m60f(getContext(), pixivWork.user.profileImageUrls.getMedium(), this.f19478a.f22308u);
        this.f19478a.f22306s.setText(pixivWork.title);
        this.f19478a.f22307t.setText(pixivWork.user.name);
    }
}
